package boundary;

import javax.swing.JFrame;
import javax.swing.JButton;

import controller.InformationStation;

import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class ISMainGui extends JFrame{
	static JFrame frame;
	public static JFrame getFrame()
	{
		return frame;
	}
	public ISMainGui() {
		getContentPane().setLayout(null);
		
		JButton btnSubscriptionCheckin = new JButton("Subscription checkIn");
		btnSubscriptionCheckin.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				InformationStation is=new InformationStation();
				is.subscriptionCheckIn();
			}
		});
		btnSubscriptionCheckin.setBounds(43, 11, 153, 23);
		getContentPane().add(btnSubscriptionCheckin);
		
		JButton btnOrderCheckin = new JButton("Order checkIn");
		btnOrderCheckin.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				InformationStation is=new InformationStation();
				is.orderCheckIn();
			}
		});
		btnOrderCheckin.setBounds(235, 11, 153, 23);
		getContentPane().add(btnOrderCheckin);
		
		JButton btnOrderNowone = new JButton("order now! (one time costumer)");
		btnOrderNowone.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				InformationStation is=new InformationStation();
				is.oneTimeCostumerOrder();
			}
		});
		btnOrderNowone.setBounds(99, 107, 231, 23);
		getContentPane().add(btnOrderNowone);
		frame=this;
	}

}
